home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atlas of U.S. Presidents
/
Atlas of U.S. Presidents.iso
/
aomc.inc
< prev
next >
Wrap
Text File
|
1995-05-30
|
5KB
|
92 lines
'****************************************************************************
'** AOMC-Specific Include File **
'****************************************************************************
''SUBs and FUNCTIONS
DECLARE SUB ChkDrive
DECLARE SUB ChkSpaceX
DECLARE SUB Install
DECLARE SUB MSOffice
DECLARE SUB Reboot LIB "INIUPD.DLL"
DECLARE FUNCTION OnWindowsNT LIB "INIUPD.DLL" AS INTEGER
DECLARE FUNCTION VflatdPresent LIB "INIUPD.DLL" AS INTEGER
DECLARE FUNCTION ExitWindowsExec LIB "User" (Exec$, Param$) AS INTEGER
DECLARE FUNCTION FileOp LIB "MSCUISTF.DLL" (opCode%, strBuffer$, fileHandle%) AS INTEGER
DECLARE FUNCTION ChkSpace(DriveToChk$, Size&) AS INTEGER
DECLARE FUNCTION MakePath(szDir$, szFile$) AS STRING
DECLARE FUNCTION PlayWAV(AudFile$) AS INTEGER
'DECLARE FUNCTION mciGetDeviceID LIB "MMSYSTEM.DLL" (DevName$) AS INTEGER
'DECLARE FUNCTION mciSendCommand LIB "MMSYSTEM.DLL" (DevID%, Message%, Param1$, Param2$) AS INTEGER
'DECLARE FUNCTION mciSendString LIB "MMSYSTEM.DLL" (Command$, RtnString$, RtnLength%, hCallback&) AS INTEGER
''Windows Constants
GLOBAL WinDrive$ '' Windows drive
GLOBAL WinDir$ '' Windows directory
GLOBAL WinSysDir$ '' Windows System directory
GLOBAL WinSys32Dir$ '' Windows NT system 32 directory
GLOBAL OnNT$ '' Running Windows NT or not
''Application Vars
GLOBAL Group$ '' Group name for Shell
GLOBAL AppTitle$ '' Application Title for Shell
GLOBAL AppExeName$ '' Application Executable Name for Shell
GLOBAL AppDir$ '' Application directory on CD-ROM
GLOBAL ScreensDir$ '' Screens directory on CD-ROM
GLOBAL DataDir$ '' Data directory on CD-ROM
GLOBAL ProgRoot$ '' Application default directory on HD
GLOBAL RT$ '' Directory on CD-ROM where VfW Runtime resides
GLOBAL MSOBitmap$ '' MS Office bitmap file for AppTitle$
GLOBAL InfoEXE$ '' Application to handle InfoFile$
GLOBAL InfoFile$ '' Information filename - must be compatible with InfoExe$
GLOBAL OtherAppsTitle$ '' Title for Other Apps Help File
GLOBAL OtherAppsFile$ '' Other Apps Help Filename
GLOBAL WantedDiskSize& '' Disk space needed for minimum installation
GLOBAL FullWantedDiskSize& '' Disk space needed for full installation
GLOBAL VfWSizeReq& '' Total Disk Size required for VfW installation
'' based on cost calculation
''Dialog ID's
CONST WELCOME = 100 '' Welcome dlg
CONST EXITFAILURE = 400 '' Exit with Failure dlg
CONST EXITQUIT = 600 '' Exit due to Quit dlg
CONST EXITSUCCESS = 700 '' Exit with Success dlg
CONST APPHELP = 900 '' Help for WELCOME dlg
CONST DO_AVI_YN = 1000 '' Ask if VfW is to be installed
CONST DO_OTHERS_YN = 1100 '' Ask if user wants to see OTHERS.HLP
CONST OPTIONS2 = 1200 '' Install option dlg
CONST APPHELP2 = 1300 '' Help for OPTIONS2 dlg
CONST VFWINFO = 1400 '' Billboard VfW cost is determined
CONST TOOBIG2 = 1500 '' Full install 'not enough space' dlg
CONST ASKQUIT2 = 1700 '' Quit dlg
CONST APPHELP3 = 1800 '' Help for DESTPATH2 dlg
CONST DESTPATH2 = 2000 '' Gets destination path for full install
CONST RESTART = 2100 '' Asks if restart Windows or return to shell
CONST RESTARTII = 2200 '' Tells user system will need to leave to finish
CONST BADPATH2 = 2300 '' Tells of invalid path
CONST TOOBIG = 6300 '' VfW install 'not enough space' dlg
'' sndPlaySound Flag values
CONST SND_SYNC = 0 '' play synchronously (default)
CONST SND_ASYNC = 1 '' play asynchronously
CONST SND_NODEFAULT = 2 '' don't use default if sound not found
CONST SND_MEMORY = 4 '' the LPSTR points to a memory file
CONST SND_LOOP = 8 '' loop the sound, until next sndPlaySound
CONST SND_NOSTOP = 10 '' dont stop any currently playing sound
''Bitmap ID
CONST LOGO = 2 '' Logo 2 in MSCUISTF.DLL (1 is just AOMC logo)
''Script Constants
GLOBAL DEST$ '' Default destination directory
GLOBAL SrcDir$ '' Source Directory of install script
GLOBAL SrcDrive$ '' Source Drive (really the CD-ROM Drive Letter)
GLOBAL dialog$ '' Set to EXITSUCCESS, EXITQUIT, or EXITFAILURE
GLOBAL OPTCUR$ '' Option selection from option dialog
GLOBAL CheckedDrive$ '' Assigned a drive letter and passed to ChkSpace
GLOBAL VfW_ANSWER$ '' Holds answer to VfW dlg
GLOBAL OpProc% '' Holds option procedure from OPTIONS dlg
GLOBAL VfWFailed% '' Flag to indicate failure of VfW install
''ON ERROR Error Codes (Continued)
CONST STFPROBLEM = 1026 ''setup problem error